import * as http from "@/utils/request"

/**
 * 获取全部AboutUs
 * @returns Promise
 */
export function getAllAboutUs() {
  return http.get('/api/admin/AboutUs/GetAll');
}

/**
 * 根据ID获取AboutUs
 * @returns Promise
 */
 export function getAboutUsById(id) {
  return http.get('/api/admin/AboutUs/GetAboutUsById',{id});
}

/**
 * 更新AboutUs的Content
 * @param {object} params 更新的参数，包括id和content
 * @returns Promise
 */
export function updateAboutUsContent(params) {
  return http.post('/api/admin/AboutUs/UpdateContent', params);
}